import { defineStore } from 'pinia'
import { ref } from 'vue'


const useAdminStore=defineStore("adminInfo",()=>{
    const admin=ref({});

    const setAdmin=(adminData)=>{
        admin.value=adminData
        
    }

    const removeAdmin=()=>{
        admin.value={}
    }

    return {admin,setAdmin,removeAdmin}
},{
    persist:true
})

export default useAdminStore